#!/bin/bash
# Author : Syuan-Rong Chen
# E-mail : calvin.atx@gmail.com
# Blog：   http://calvinit.blogspot.com
# Date : 20100812
#
# <description>
# Copyright (C) <year>  <name> <email>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see .
#
clear

function outputMenu {

echo -e '\E[1;33m'"歡迎使用Calvin_Virt Manager v1.100815"; tput sgr0
echo ""
echo -e '\E[1;32m'"請選擇想要進行的功能"
echo 		  ""; tput sgr0
echo "[1] 虛擬機器設定"
echo "[2] 虛擬網路設定"
echo ""
echo "[3] 關於作者"
echo "[0] 結束程式"

echo ""
echo -ne "請選擇: "
read USERCHOICE
clear

case $USERCHOICE in
        "1") . /usr/cbin/d-cvirt/vm.sh ;;
        "2") . /usr/cbin/d-cvirt/net.sh ;;
	"3") . /usr/cbin/c/0-ME ;;
	"0") exit 0;;
        *) echo "請輸入正確的選擇";;
esac
}

while [ 1 ]; do
   clear

   outputMenu

   echo ""
   echo -ne "回到主選單...(請按任何鍵)"
   read
done
